package com.itheima.pinda.DTO.truck;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * TruckLicenseDto
 */
@Data
public class TruckLicenseDto implements Serializable {
    private static final long serialVersionUID = 15286301913386265L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "车辆id")
    private String truckId;

    @ApiModelProperty(value = "发动机编号")
    private String engineNumber;

    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate registrationDate;

    @ApiModelProperty(value = "国家强制报废日期")
    @JsonFormat( pattern = "yyyy-MM-dd" )
    private LocalDate mandatoryScrap;

    @ApiModelProperty(value = "检验有效期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate expirationDate;

    @ApiModelProperty(value = "整备质量")
    private BigDecimal overallQuality;

    @ApiModelProperty(value = "核定载质量")
    private BigDecimal allowableWeight;

    @ApiModelProperty(value = "外廓尺寸")
    private String outsideDimensions;

    @ApiModelProperty(value = "行驶证有效期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate validityPeriod;

    @ApiModelProperty(value = "道路运输证号")
    private String transportCertificateNumber;

    @ApiModelProperty(value = "图片信息")
    private String picture;
}